import { IsNotEmpty, IsNumber } from 'class-validator';

export class UserListDto {
  @IsNotEmpty({
    message: '页码不能为空',
  })
  @IsNumber({}, { message: '页码必须为数字' })
  pageNo: number;
  @IsNotEmpty({
    message: '每页数量不能为空',
  })
  @IsNumber({}, { message: '每页数量必须为数字' })
  pageSize: number;
  username: string;
  id: string;
  nickName: string;
  phoneNumber: string;
}
